#include <stdio.h>

int getlcm(int x, int y);

int main(void)
{
	int a, b, c;

	printf("Input two positive integers: ");
	scanf("%d%d", &a, &b);
	c = getlcm(a, b);
	printf("c = %d\n", c);

	return 0;
}

int getlcm(int x, int y)
{
	int lcm;

	if (x > y)
		lcm = x;
	else
		lcm = y;
	while (lcm % x || lcm % y)
		lcm++;

	return lcm;
}